public class test {
    private String name;
    private String pwd;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    @Override
    public String toString() {
        return "test{" +
                "name='" + name + '\'' +
                ", pwd='" + pwd + '\'' +
                '}';
    }
    public test(){}

    public test(String name, String pwd) {
        this.name = name;
        this.pwd = pwd;
    }
    public void answerName(String name){
        Boolean isMe = false;
        isMe = name == this.name;
        if(isMe){
            System.out.println("学生" + this.name + "回答 ： 到");
        }


    }
}
